MyTextProc
Your text function should have the following form:
pascal OSErr MyTextProc (Handle theText, Movie theMovie, short *displayFlag, long refcon);
theText
- Contains a handle to the formatted text.
theMovie
- Specifies the movie for this operation.
displayFlag
Contains a pointer to one of the following flags, which specify how you want the text media handler to proceed when your function returns. The three possible return values for the flag are:txtProcDefaultDisplay
- Indicates that the media should follow the instructions of its own
displayFlag
constants.txtProcDontDisplay
- Tells the media not to display the text.
txtProcDoDisplay
- Instructs the media to display the text regardless of the media's own
displayFlag
constants.refcon
- Contains the reference constant to your text function.